package objects;

public class BuildingCard {
	public int ironCost = 0;
	public int goldCost = 0;
	public int woodCost = 0;
	public int stoneCost = 0;
	
	public String cardName = "";
	
	public BuildingCard(int ironCost, int goldCost, int woodCost, int stoneCost, String cardName) {
		this.ironCost = ironCost;
		this.goldCost = goldCost;
		this.woodCost = woodCost;
		this.stoneCost = stoneCost;
		this.cardName = cardName;
	}
	
	public BuildingCard() {
		this.ironCost = 0;
		this.goldCost = 0;
		this.woodCost = 0;
		this.stoneCost = 0;
	}
	
	public void buyCard(PlayerInfo player) {
		player.spend(goldCost, stoneCost, woodCost, ironCost);
		player.buildingCards.add(this);
	}
}
